package com.csnf.dao;

import com.csnf.entity.Student;

import java.io.IOException;
import java.util.List;

public interface IStudentDao {
     //查询所有学生
     List<Student> findAll() throws IOException;
     //通过id查询学生
     Student findById(Integer id) throws IOException;
     //通过name查询学生
     List<Student> findByName(String name) throws IOException;
     //删除学生
     void deleteById(Integer id) throws IOException;

     void update(Student student) throws IOException;

     void insert(Student student) throws IOException;

}
